import request from '@/utils/request'

// 查询生产领料列表
export function listPicking(query) {
  return request({
    url: '/picking/picking/list',
    method: 'get',
    params: query
  })
}

// 查询生产领料详细
export function getPicking(issueId) {
  return request({
    url: '/picking/picking/' + issueId,
    method: 'get'
  })
}

// 新增生产领料
export function addPicking(data) {
  return request({
    url: '/picking/picking',
    method: 'post',
    data: data
  })
}

// 修改生产领料
export function updatePicking(data) {
  return request({
    url: '/picking/picking',
    method: 'put',
    data: data
  })
}

// 删除生产领料
export function delPicking(issueId) {
  return request({
    url: '/picking/picking/' + issueId,
    method: 'delete'
  })
}
